'use strict';

module.exports = app => {
  class AcademyController extends app.Controller {
    async init (ctx) {
      let initAcademy = new ctx.app.model.education.academy({
        name: '默认学院'
      })

      initAcademy.save()

      ctx.body = ctx.helper.rest.resp({
        ctx,
        data: initAcademy
      })
    }
  }

  return AcademyController
}
